package WinterVacation.Day4;

import java.util.Random;

public class Num1 {
    public static void main(String[] args) {
        Random random = new Random();
        int [][] arr = new int[3][3];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                arr[i][j] = random.nextInt();
            }
        }
        int num1 = 0;
        int num2 = 0;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if(i == j){
                    num1 += arr[i][j];
                }
                if(i + j == args.length){
                    num2 += arr[i][j];
                }
            }
        }
        System.out.println(num1 + "and" + num2);
    }
}
